import {createStore} from 'vuex'
import persistedState from 'vuex-persistedstate'
let store = createStore({
	state:{
		userInfo:{},
	},
	mutations:{
		updateUserInfo(state,info){  // 保存登录后的用户信息到仓库
			state.userInfo=info
		},
	},
	plugins:[persistedState()]
})


export default store